package thinking.java.initalization.and.clean.up.example;

/**
 * @author GaoFeng
 * @date 2020/1/1 9:10
 */

public class Ex_5_3_8_ThisMethodInvoke {
    public static void main(String[] args) {
        TwoMethodClass twoMethodClass = new TwoMethodClass();
        twoMethodClass.first();
    }

    static class TwoMethodClass {

        public void first() {
            System.out.println("first method is invoke");
            second();
            this.second();
        }

        public void second() {
            System.out.println("second method is invoke");
        }

    }
}
